home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14187 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: seagoon.newcastle.edu.au!usenet
  2. From: mazz@faceng.newcastle.edu.au (Richard Mazzaferri)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ vs Delphi 2.0
  5. Date: Fri, 29 Mar 1996 02:19:51 GMT
  6. Organization: Newcastle University
  7. Message-ID: <315b4751.80328396@news.newcastle.edu.au>
  8. References: <825673272.2083@axiombc.demon.co.uk> <4ims71$oh3@hawk.pix.za> <3152304b.5915048@news.newcastle.edu.au> <4j2u9o$s0n@nntp.interaccess.com> <4j9dtu$sh8@tulsa.lgc.com>
  9. NNTP-Posting-Host: tesla.newcastle.edu.au
  10.  
  11. mrovak@lgc.com (Mike.Rovak) wrote:
  12.  
  13. > In article <4j2u9o$s0n@nntp.interaccess.com>,
  14. > Thaddeus L. Olczyk <Polczyk@interaccess.com> wrote:
  15. > >mazz@faceng.newcastle.edu.au (Richard Mazzaferri) wrote:
  16.  
  17. > >>The biggest omissions are multiple inheritance (which can generally be
  18. > >>faked with a bit of work) and templates (no workaround :-(.  Some of the
  19. > >
  20. > >Many times a lot of work or virtually impossible. 
  21. > Nothing is impossible if a genuine need exists (Mike's Law).  :-)
  22. > That's where creativity and engineering skills come in.
  23.  
  24. I have to agree with Thaddeus - occasionally there appear to be things that
  25. *fundamentally* cannot be achieved without multiple inheritance.
  26. Fortunately, these are *much* rarer than people generally claim.  I have
  27. only one example.  I can see no way to port my C++ debugging/logging
  28. library to Delphi because it requires multiple inheritance - the debugging
  29. output has to go to an output stream which depends on the type of the most
  30. derived class of an object, even during construction when the outermost
  31. class has not been created yet.  This is solved in C++ by using virtual
  32. inheritance to ensure that the Debug classes are constructed first, and
  33. once only.  Someone else in a Delphi group claimed that MI was never
  34. *required*, but so far has declined to show me how to solve my problem :-)
  35. Perhaps even this is solvable though.
  36.  
  37. Have fun,
  38.     Mazz.
  39. mazz@faceng.newcastle.edu.au
  40.